<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="qrcode.js"></script>
		<style>
			#qrcode {
				width: 100px;
				height: 100px;
			}
			#qrcode img {
				width: 100%;
			}
		</style>
	</head>
	<body>
	
		<div id="qrcode"></div>
		<script>
		var url = "null"
		url = window.location.search.slice(1);
			var qrcode = new QRCode(document.getElementById("qrcode"), {
				text: url,
				width: 128, 
				height: 128,
				colorDark: "black", 
				colorLight: "#ffffff", 
				correctLevel: QRCode.CorrectLevel.M 
			});
           <!-- document.write("目标网址：",window.location.search.slice(1)); -->

		</script>
	</body>
</html>

